LoadModulePosition

 

The 'LoadModulePosition' function displays the specified graphic-module at the specified coordinates on screen. The specified graphic-module should have the 'Pop-up' property as the window property.

 

void @LoadModulePosition(string module_name, int method, int posx, int posy)

 

Parameters

string module_name : graphic-module name that you want to open

int method : 0 = Center, 1= Left / Top, 2 = Right / Top, 3 = Left / Bottom, 4 = Right / Bottom

int posx : x-coordinate

int posy : y-coordinate

 

Example

@LoadModulePosition("Pop1.modx",1,100,100);

Description : 'Pop1.modx' is displayed at

내용 설명 : POPUP.MODX(반드시 POPUP윈도우로 설정되어 있어야 한다. 이 설정은 ‘편집기|기타|모듈 특성 설정’에서 한다.) 인 그래픽화면을 감시 화면상에 나타낼 때 윈도우의 좌측상단(method : 1)을 기준으로 X축으로 100Pixel, Y축으로 100Pixel 위치에 보여준다.

 

Reference

@LoadModule()

@CloseModule()